package com.zhiyou100.service.impl;

import com.zhiyou100.entity.Rect;
import com.zhiyou100.mapper.RectMapper;
import com.zhiyou100.service.RectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 房租 实现类
 *
 * @author yang
 * @version 1.0.0
 * @date 2020-09-01 10:00
 */
@Service
public class RectImpl implements RectService {
    @Autowired
    private RectMapper mapper;

    @Override
    public List<Rect> list() {
        return mapper.list();
    }

    @Override
    public Rect selectOne(Integer id) {
        return mapper.selectOne(id);
    }

    @Override
    public void updateOne(Rect rect) {
        mapper.updateOne(rect);
    }

    @Override
    public void deleteOne(Integer id) {
        mapper.deleteOne(id);
    }

    @Override
    public void insertOne(Rect rect) {
        mapper.insertOne(rect);
    }
}
